#ifndef MUSICLIST_H
#define MUSICLIST_H

#include <QVector>
#include <QUrl>
#include <QList>
#include "music.h"

class MusicList
{
public:
    MusicList();

    void addMusicsByUrl(const QList<QUrl>& musicUrls);

    QVector<Music>::iterator findMusicByMusicId(const QString& musicId);

    QVector<Music>::iterator begin();
    QVector<Music>::iterator end();


    void writeToQQMusicDB();
    void readFromQQMusicDB();

private:
    QVector<Music> musicList;
};

#endif // MUSICLIST_H
